<%inherit file="main.html"/>
<%block name="Title">文章管理</%block>
<%block name="Link">
	<link rel="stylesheet" href="/admin/themes/default/article.css" type="text/css" media="screen" />
	<script type="text/javascript" src="/admin/themes/default/editor.js"></script><!-- TinyMCE editor -->
</%block>


<%block name="Main">

	<div id="nav">
		<div class="buttons">
				<a href="/admin/article/new" class="button big">添加</a>
		</div>
	</div>

	<table id="table_list" summary="显示文章列表">
		<caption>文章列表</caption>
		<thead>
		<tr class="odd">
			<th scope="col" abbr="Article ID">文章ID</th>
			<th scope="col" abbr="Article Title">文章标题</th>	
			<th scope="col" abbr="Article ShortLink">短连接</th>	
			<th scope="col" abbr="Article Action">操作</th>
		</tr>	
		</thead>
	%for article in DATA.articleList:
		<tr class="${loop.cycle('even', 'odd')}">
			<td>${article.key().id()}</td>
			<td><a href="${article.permalink}">${article.title}</a></td>
			<td><a href="${article.shortlink}">${article.shortlink}</a></td>
			<td>
				<a  name="edit" href="/admin/article/edit/${article.key().id()}">[编辑]</a>
				<a name="delete" href="/admin/article/delete/${article.key().id()}">[删除]</a>		</td>
		</tr>
	%endfor
	</table>

</%block>

